﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TXTD.Admin.ScheduledTask.CostomAttribute
{
    /// <summary>
    /// 调度程序任务
    /// </summary>
    public class SchedulerJobAttribute : Attribute
    {
        /// <summary>
        /// CRON 表达式
        /// </summary>
        public readonly string CronExpression = "";
        /// <summary>
        /// 任务名称
        /// </summary>
        public readonly string TaskName = "";
        /// <summary>
        /// 任务描述
        /// </summary>
        public readonly string TaskDescribe = "";
        public SchedulerJobAttribute(string _TaskName, string _CronExpression, string _TaskDescribe = "")
        {
            CronExpression = _CronExpression;
            TaskName = _TaskName;
            TaskDescribe = _TaskDescribe;
        }
    }
}